package com.example.demo1101.demo3;

public class Girl extends Thread {
    private BankCard bankCard;

    public Girl(BankCard bankCard) {
        this.bankCard = bankCard;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            bankCard.token(1000);
        }

    }
}
